package com.example.ssm.dao;

import com.example.ssm.pojo.BasicInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Package: com.example.ssm.dao
 * @ClassName: BasicDao
 * @Author: 76470
 * @CreateTime: 2021/6/10 16:41
 * @Description:
 */
@Repository
public interface BasicDao {
	//分页查询
	public List<BasicInfo> findAllByPage(Integer x, Integer y);
	//查询当前记录条数
	public Integer countRow();
	//按照name分页查询
	public List<BasicInfo> findAllByName(String name);
	//按照category分页查询
	public List<BasicInfo> findAllByCategory(String category);
	//按照name和category分页查询
	public List<BasicInfo> findAllByNameCategory(String name, String category);
	//按照id删除数据
	public boolean deleteById(String id);
	//按照id查找数据
	public List<BasicInfo> findById(String id);
	//新增记录
	public boolean addInfo(String id, String category, String name, String no, String area, String limitTime,
	                       String state, String startTime, String overTime, String useManId, String useDesc,
	                       String note);
	//修改数据
	public boolean updateById(String id, String category, String name, String no, String area, String limitTime,
	                          String state, String startTime, String overTime, String useManId, String useDesc,
	                          String note);
}
